package model.graphic;

import java.util.Comparator;
import model.graphic.objects.Graphical;

/**
 *
 * @author Ben
 */
public class GraphicalComparator implements Comparator{
    public int compare(Object arg0, Object arg1) {
        Graphical g0 = (Graphical)arg0;
        Graphical g1 = (Graphical)arg1;
        return g0.getName().compareTo(g1.getName());
    }
}
